gui/macOS: Use attached tooltip properties rather than creating a new tooltip in...
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 26 Feb 2025 02:46:48 +0000 (10:46 +0800)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 3 Mar 2025 16:11:48 +0000 (16:11 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/macOS/ui/FileProviderSyncStatus.qml

index 60b1385128e352c5281c4c97fdf64c26a7d62a11..cd63766798778d33b481c66f4c89c3c6a2e1599b 100644 (file)
@@ -73,9 +73,8 @@ GridLayout {
         hoverEnabled: true
         onClicked: root.controller.signalFileProviderDomain(root.accountUserIdAtHost)
 
-        ToolTip {
-            visible: requestSyncButton.hovered
-            text: qsTr("Request a sync of changes for the VFS environment. macOS may ignore or delay this request.")
-        }
+        ToolTip.visible: hovered
+        ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
+        ToolTip.text: qsTr("Request a sync of changes for the VFS environment.\nmacOS may ignore or delay this request.")
     }
 }
\ No newline at end of file